package cn.mooncode.basketballManage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author jwz
 * @since 2021-03-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_team")
@ApiModel(value="Team对象", description="")
public class Team implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "球队表主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "球队名称")
    private String name;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "经纪人")
    private String manager;

    @ApiModelProperty(value = "球队标语")
    private String slogan;

    @ApiModelProperty(value = "球队所在地")
    private String location;

    @ApiModelProperty(value = "球队标志")
    private String logo;

    @ApiModelProperty(value = "获胜次数")
    private Integer winNum;

    @ApiModelProperty(value = "教练外键")
    private Integer cid;

    @ApiModelProperty(value = "球队队员")
    @TableField(exist = false)
    private List<Playerinfo> playerinfos;

    @ApiModelProperty(value = "教练信息")
    @TableField(exist = false)
    private Coachinfo coachinfo;
}
